sum = 0
for i in range(50000,0,-1):
    sum += 1/i
print(sum)
print(i)
sum = 0
for i in range(1,50001):
    sum += 1/i
print(i)
print(sum)